<%@ tag language="java" pageEncoding="ISO-8859-1" import="java.util.*, dk.bris.webdev.*"%>
<%@ attribute name="item" required="true"%>
<%@ attribute name="amount" required="true"%>
<%
	if (!("".equals(item))  && !("".equals(amount))) {
		Vector<CartEntry> cart = (Vector<CartEntry>) session
				.getAttribute("cart");
		cart.add(new CartEntry(item, Integer.parseInt(amount)));
		session.setAttribute("cart", cart);
	}
%>
